package com.moli.iov.sys.model.dto.req;

import java.io.Serializable;
import javax.validation.constraints.NotEmpty;
import lombok.Data;

/**
 * <p>
 * 身份认证DTO
 * </p>
 *
 * @author zql
 * @since 2019/9/26 12:34
 */
@Data
public class AuthenticationDto implements Serializable {

  private static final long serialVersionUID = -5883055036558214856L;

  /**
   * 账号
   */
  @NotEmpty(message = "账号不能为空", groups = {Login.class, Auth.class})
  private String account;

  /**
   * 密码
   */
  @NotEmpty(message = "密码不能为空", groups = {Login.class})
  private String password;

  /**
   * 访问uri
   */
  @NotEmpty(message = "uri不能为空", groups = {Auth.class})
  private String uri;

  public interface Login{}

  public interface Auth{}
}
